
/* =========================================
   DHR PHOTO GALLERY
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #24364b;
    background: #f4f7fc;
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =========================================
   GOVERNMENT TOP BAR
========================================= */

.topbar {
    background: #06366f;
    color: #fff;
    min-height: 48px;
    font-size: 11px;
}

.top-inner {
    max-width: 1450px;
    width: 92%;
    margin: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.gov {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emblem {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gov-copy strong {
    font-size: 12px;
}

.gov-copy span {
    color: #d5e7ff;
    font-size: 10px;
}

.top-divider {
    height: 28px;
    width: 1px;
    background: rgba(255,255,255,.35);
    margin: 0 5px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-links a {
    color: #e5f0ff;
    font-size: 10px;
}

.top-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.top-links .social {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
}


/* =========================================
   DHR BRAND HEADER
========================================= */

.brand-header {
    position: relative;
    z-index: 5;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20,45,80,.07);
}

.brand-inner {
    max-width: 1450px;
    width: 92%;
    min-height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dhr-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.dhr-brand img {
    width: 340px;
    max-width: 100%;
    max-height: 76px;

    object-fit: contain; 
}

.brand-divider {
    width: 1px;
    height: 48px;
    background: #dbe3ed;
}

.programme-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.programme-name span {
    color: #52647a;
    font-size: 12px;
    font-weight: 600;
}

.programme-name strong {
    color: #064783;
    font-size: 16px;
    font-weight: 800;
}

.brand-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 17px;
    color: #075ba8;
    background: #edf5ff;
    border: 1px solid #d5e8fc;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.brand-back:hover {
    color: #fff;
    background: #075ba8;
}


/* =========================================
   HERO BANNER
========================================= */

.gallery-hero {
    position: relative;
    overflow: hidden;
    min-height: 275px;
    padding: 5px 4%;
    color: #fff;
    background: linear-gradient(
        115deg,
        #06366f 0%,
        #0757a5 55%,
        #087bc8 100%
    );
}

.hero-pattern {
    position: absolute;
    top: -260px;
    right: 7%;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.hero-pattern::before,
.hero-pattern::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.hero-pattern::before {
    inset: 35px;
}

.hero-pattern::after {
    inset: 75px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1100px;
    margin: auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #d6eaff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.gallery-hero h1 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    font-weight: 800;
}

.gallery-hero p {
    max-width: 730px;
    margin: 0;
    color: #e1efff;
    font-size: 14px;
    line-height: 1.8;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 25px;
}

.hero-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e7f3ff;
    font-size: 11px;
    font-weight: 600;
}

.hero-highlights i {
    color: #a9dcff;
    font-size: 13px;
}


/* =========================================
   GALLERY CONTENT
========================================= */

.gallery-content {
    padding: 40px 0 65px;
}

.gallery-container {
    width: 92%;
    max-width: 1250px;
    margin: auto;
}

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-label {
    color: #0872bd;
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 800;
}

.gallery-heading h2 {
    margin: 7px 0 5px;
    color: #183c64;
    font-size: 27px;
    font-weight: 800;
}

.gallery-heading p {
    margin: 0;
    color: #78899e;
    font-size: 12px;
    line-height: 1.6;
}

.gallery-total {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #dceafa;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(20,50,90,.04);
}

.total-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0871bd;
    background: #e9f4ff;
    border-radius: 9px;
    font-size: 18px;
}

.gallery-total > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-total strong {
    color: #075ba8;
    font-size: 21px;
}

.gallery-total small {
    color: #8391a4;
    font-size: 10px;
}


/* =========================================
   FILTERS AND SEARCH
========================================= */

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 17px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid #dce6f1;
    border-radius: 7px;
    color: #61758b;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.filter-btn:hover {
    color: #075ba8;
    border-color: #9fc9ee;
    background: #f4f9ff;
}

.filter-btn.active {
    color: #fff;
    border-color: #075ba8;
    background: #075ba8;
    box-shadow: 0 4px 10px rgba(7,91,168,.15);
}

.filter-btn i {
    font-size: 11px;
}

.gallery-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 260px;
    min-height: 40px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 7px;
}

.gallery-search > i {
    color: #8294a9;
    font-size: 12px;
}

.gallery-search input {
    width: 100%;
    height: 38px;
    border: 0;
    outline: 0;
    color: #263c55;
    background: transparent;
    font-size: 11px;
}

.gallery-search input::placeholder {
    color: #9ba9b9;
}

.gallery-search button {
    padding: 5px;
    border: 0;
    color: #8998aa;
    background: transparent;
    cursor: pointer;
}

.gallery-search button:hover {
    color: #075ba8;
}

.gallery-result {
    margin: 0 0 15px;
    color: #8795a6;
    font-size: 11px;
}


/* =========================================
   PHOTO GRID
========================================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.photo-item {
    min-width: 0;
    animation: photoFade .35s ease both;
}

.photo-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20,50,90,.055);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 28px rgba(20,50,90,.13);
}

.photo-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #eaf1f8;
}

.photo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.photo-card:hover .photo-image img {
    transform: scale(1.07);
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #91a5bb;
    background: linear-gradient(135deg, #edf4fb, #dfeaf5);
    font-size: 12px;
}

.image-placeholder i {
    font-size: 35px;
}

.photo-image.image-error .image-placeholder {
    display: flex;
}

.photo-category {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 6px 11px;
    color: #fff;
    background: rgba(4,57,107,.85);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.photo-zoom {
    position: absolute;
    right: 13px;
    bottom: 13px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #075ba8;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(5px);
    transition: .25s ease;
}

.photo-card:hover .photo-zoom,
.photo-card:focus-visible .photo-zoom {
    opacity: 1;
    transform: translateY(0);
}

.photo-info {
    flex: 1;
    padding: 16px 17px 18px;
}

.photo-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #0873bf;
    font-size: 10px;
    font-weight: 700;
}

.photo-info h3 {
    margin: 0 0 7px;
    color: #183c64;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
}

.photo-info p {
    margin: 0;
    color: #8290a1;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================
   EMPTY STATE
========================================= */

.gallery-empty {
    padding: 55px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d8e4f0;
    border-radius: 12px;
}

.gallery-empty > span {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #79a9d5;
    background: #edf6ff;
    border-radius: 50%;
    font-size: 25px;
}

.gallery-empty h3 {
    margin: 0 0 7px;
    color: #294968;
    font-size: 17px;
}

.gallery-empty p {
    margin: 0;
    color: #8795a6;
    font-size: 12px;
}

.gallery-empty button {
    margin-top: 17px;
    padding: 10px 18px;
    color: #fff;
    background: #075ba8;
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,13,28,.94);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lightbox-counter {
    padding: 9px 13px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border-radius: 5px;
    font-size: 11px;
}

.lightbox-close {
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
}

.lightbox-close:hover {
    background: #d83d3d;
}

.lightbox-image-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 55px 60px 20px;
}

.lightbox-image-area > img {
    max-width: 100%;
    max-height: calc(100% - 85px);
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.lightbox-caption {
    width: 100%;
    padding-top: 14px;
    text-align: center;
}

.lightbox-caption h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 16px;
}

.lightbox-caption p {
    margin: 0;
    color: #c7d5e4;
    font-size: 11px;
    line-height: 1.6;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: .2s ease;
}

.lightbox-nav:hover {
    color: #075ba8;
    background: #fff;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes photoFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .top-inner {
        padding: 9px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .top-links {
        flex-wrap: wrap;
    }

    .brand-inner {
        min-height: 75px;
    }

    .dhr-brand img {
        width: 52px;
        height: 52px;
    }

    .programme-name span {
        font-size: 10px;
    }

    .programme-name strong {
        font-size: 12px;
    }

    .brand-back {
        padding: 9px 10px;
        font-size: 10px;
    }

    .gallery-hero {
        min-height: 250px;
        padding: 40px 0;
    }

    .hero-content {
        width: 90%;
    }

    .hero-highlights {
        gap: 12px 18px;
    }

    .gallery-heading {
        align-items: flex-start;
    }

    .gallery-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-search {
        width: 100%;
    }

    .photo-grid {
        gap: 15px;
    }

    .photo-image {
        height: 190px;
    }

}

@media (max-width: 520px) {

    .top-divider,
    .ministry-copy {
        display: none;
    }

    .brand-inner {
        width: 94%;
        gap: 8px;
    }

    .brand-divider {
        height: 38px;
    }

    .programme-name strong {
        font-size: 10px;
    }

    .brand-back {
        width: 35px;
        height: 35px;
        justify-content: center;
        padding: 0;
    }

    .brand-back span {
        display: none;
    }

    .gallery-heading {
        flex-direction: column;
    }

    .gallery-total {
        align-self: flex-start;
    }

    .gallery-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-btn {
        justify-content: center;
        padding: 10px 7px;
        font-size: 10px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-item {
        width: 100%;
        max-width: 440px;
        margin: auto;
    }

    .photo-image {
        height: 230px;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        height: 85vh;
    }

    .lightbox-image-area {
        padding: 55px 35px 20px;
    }

    .lightbox-nav {
        width: 33px;
        height: 33px;
        font-size: 11px;
    }

}
